package com.linkhub.oms.admin.modules.logistic.freighttemplate.domain.param;

import com.linkhub.oms.admin.modules.user.domain.param.BaseUserParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 物流运费模板查询
 *
 * @author Frank
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "LogisticFreightTemplateQueryParam", description = "LogisticFreightTemplateQueryParam")
public class LogisticFreightTemplateQueryParam extends BaseUserParam implements Serializable {

    @ApiModelProperty(value = "页数, 从1开始")
    @NotNull(message = "{validation.page.notNull}")
    @Range(min = 1, message = "{validation.page.min}")
    private Integer page;

    @ApiModelProperty(value = "每页大小")
    @NotNull(message = "{validation.pageSize.notNull}")
    private Integer size;

    @ApiModelProperty(value = "国家编码")
    private String countryCode;

    @ApiModelProperty(value = "渠道名称")
    private String channelCName;

    @ApiModelProperty(value = "模板名称")
    private String templateName;

}
